package com.paascloud.discovery.eureka;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * The class Paas cloud eureka application.
 *
 * @author paascloud.net@gmail.com
 */
@EnableEurekaServer
@SpringBootApplication
public class PaasCloudEurekaApplication implements CommandLineRunner{

	@Value("${spring.profiles.active}")
	private String abc;

	@Value("${server.port}")
	private int port;
	/**
	 * The entry point of application.
	 *
	 * @param args the input arguments
	 */
	public static void main(String[] args) {

		SpringApplication.run(PaasCloudEurekaApplication.class, args);

	}

	@Override
	public void run(String... args) throws Exception {
		System.out.println("AAAAAAAAA "+"" +abc+"  "+port);
	}


}
